package cn.iune.erp.customer;


import java.sql.SQLException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface IFileCustomerGroupDao {
	
	public void insert(FileCustomerGroup obj);
	
	public void delete(String fID);

	public FileCustomerGroup update(FileCustomerGroup obj) ;

	public List<FileCustomerGroup> getAll();
	
	public FileCustomerGroup getByID(String fID);
	
	public int getRootCount();

	public List<FileCustomerGroup> getRoots(String enterpriseNo);

	public int getChildCount(String fParent);

	public List<FileCustomerGroup> getChilds(String fParent);


	public List<FileCustomerGroup> getChildren(String fParent);

	List<FileCustomerGroup> getList(String enterpriseNo, Integer offset, Integer limit);

	JSONObject query(JSONObject data) throws SQLException;

	JSONObject querySimple(JSONObject data) throws SQLException;

	JSONObject create(JSONObject data);

}
